<?php
require_once 'application/library/db/gcDaoFactory.php';
require_once 'application/constant/daoConfig.php';
/**
 * login_services_IndexService
 * @author    Soochow University
 * @version   1.0
 * @exclude   作  成  日：2011/04/07
 */

class index_services_IndexService{

    private $objDaoFactory;

    public function __construct(){
        $this->objDaoFactory = gcDaoFactory::getInstance();
    }

    /**
     * 取得站点信息
     * pbGetSiteInfo
     * @param   string  $strType
     * @return  array   $arrReturn
     */
    public function pbGetSiteInfo($strType){
        $objDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SITE_INFO_DAO);
        $arrReturn = $objDao->pbGetSiteInfo($strType);
        return $arrReturn;
    }
    
    public function pbGetNews($strNewsNo) {
        $objDao = $this->objDaoFactory->createDao(daoConfig::T_AD_M_SITE_INFO_DAO);
        $strContent = $objDao->pbGetNews($strNewsNo);
        if (!empty($strContent)) {
            return $strContent;
        } else {
            return "";
        }
    }
}